import { Module } from '@nestjs/common';
import { UserController } from './user.controller';
import { UserService } from './user.service';
import {TypeOrmModule} from '@nestjs/typeorm'
import {UserEntity} from './user.entity'
import {UserExtendEntity} from './userExtend.entity'
import {RoleEntity} from '../role/role.entity'
@Module({
  imports:[
    TypeOrmModule.forFeature([
      UserEntity,   //将创建的实体类型加载到对应的模块中
      UserExtendEntity,
      RoleEntity
    ])
  ],
  controllers: [UserController],
  providers: [UserService]
})
export class UserModule {}
